package com.miyake.client.datamanage.plugin;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.DialogBox;
import com.miyake.client.DataService;
import com.miyake.client.DataServiceAsync;

public class FilePluginDialog extends PluginDialog {

	@Override
	protected void getPluginList() {
		DataServiceAsync service = DataService.Util.getInstance();
		service.getFilePluginList(new AsyncCallback<List<PluginProperty>>() {
			@Override
			public void onFailure(Throwable caught) {
			}

			@Override
			public void onSuccess(List<PluginProperty> result) {
				showList(result);
			}
		});
	}

	@Override
	protected DialogBox getAddDialog() {
		return new FilePluginRegisterDialog();
	}

}
